

def get_responder(request):
    user = request.user
    if user.department.leader.uid == user.uid:
        # 董事会的leader 请假不需要审批
        if user.department.name == '董事会':
            responder = None
        # 其他部门leader
        else:
            responder = user.department.manager
        # 如果不是部门leader
    else:
        responder = user.department.leader
    return responder